package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Punish;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface PunishService {

	public Punish savePunish(Punish punish);

	public Set<Punish> loadPunishs();

	public Set<Punish> loadReferencePunishs(Set<Punish> punishs);

	public Set<Punish> loadPunishsByIdSet(Set<Integer> punishsId);

	public Map<String, ?> loadPunishObjectReferencedSet(Punish punish);

	public Map<String, ?> loadPunishClassReferencedSet(Punish punish);

	public void deletePunish(Punish punish);

	public void deletePunishs(Set<Integer> deletePunishsId);

	public List<Punish> findAllPunishs(Integer startResult, Integer maxRows);

	public Punish findPunishByPrimaryKey(Integer id);

	public Integer countPunishs();

	public Integer countPunishs(CmiPagination page);

	public Integer countPunishsByName(String queryName);

	public Integer countPunishsByDetachedCriteria(CmiPagination page);

}
